package com.example.springbootdemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class JspTest {

    @RequestMapping(value="/index",method = RequestMethod.GET)
    public String index(){

        return "demo01";
    }


    @RequestMapping(value="/showError",method = RequestMethod.GET)
    public String showError(){

        return "showError";
    }

    @RequestMapping(value="/html/showHtml",method = RequestMethod.GET)
    public String showHtml(){

        return "testHtml";
    }
}
